package com.ajk.server.model;

import java.util.Date;

import com.ajk.server.model.response.IdNameRes;
/**
 * 身体部位  <br>
 * dict_bodypart <br>
 * v1.0 2016-05-01
 */
 public class BodypartDict extends BaseModel implements Comparable<BodypartDict>{

		
		private static final long serialVersionUID = 1L;
		
	 	
	 	//id
		private Integer id;

	 	
	 	//name
		private String name;

	 	
	 	//parent_id
		private Integer parentId;

	 	//0无、1男、2女
	 	//sex
		private Integer sex;

	 	//描述
	 	//description
		private String description;

	 	//是否在用,0：未使用,1：正在使用
	 	//in_used
		private Integer inUsed;

	 	
	 	//last_modify_time
		private Date lastModifyTime;

	 	
	 	//create_time
		private Date createTime;

	 	
	 	//seq
		private Integer seq;

	 	//是否可修改0：可修改，1:不可修改
	 	//is_system
		private Integer isSystem;

		
		/**
		*
	 	*id
	 	*/
		public Integer getId() {
			return id;
		}
		
		/**
		*
	 	*id
	 	*/
		public void setId(Integer id) {
			this.id = id;
		}
		
		/**
		*
	 	*name
	 	*/
		public String getName() {
			return name;
		}
		
		/**
		*
	 	*name
	 	*/
		public void setName(String name) {
			this.name = name;
		}
		
		/**
		*
	 	*parent_id
	 	*/
		public Integer getParentId() {
			return parentId;
		}
		
		/**
		*
	 	*parent_id
	 	*/
		public void setParentId(Integer parentId) {
			this.parentId = parentId;
		}
		
		/**
		*0无、1男、2女
	 	*sex
	 	*/
		public Integer getSex() {
			return sex;
		}
		
		/**
		*0无、1男、2女
	 	*sex
	 	*/
		public void setSex(Integer sex) {
			this.sex = sex;
		}
		
		/**
		*描述
	 	*description
	 	*/
		public String getDescription() {
			return description;
		}
		
		/**
		*描述
	 	*description
	 	*/
		public void setDescription(String description) {
			this.description = description;
		}
		
		/**
		*是否在用,0：未使用,1：正在使用
	 	*in_used
	 	*/
		public Integer getInUsed() {
			return inUsed;
		}
		
		/**
		*是否在用,0：未使用,1：正在使用
	 	*in_used
	 	*/
		public void setInUsed(Integer inUsed) {
			this.inUsed = inUsed;
		}
		
		/**
		*
	 	*last_modify_time
	 	*/
		public Date getLastModifyTime() {
			return lastModifyTime;
		}
		
		/**
		*
	 	*last_modify_time
	 	*/
		public void setLastModifyTime(Date lastModifyTime) {
			this.lastModifyTime = lastModifyTime;
		}
		
		/**
		*
	 	*create_time
	 	*/
		public Date getCreateTime() {
			return createTime;
		}
		
		/**
		*
	 	*create_time
	 	*/
		public void setCreateTime(Date createTime) {
			this.createTime = createTime;
		}
		
		/**
		*
	 	*seq
	 	*/
		public Integer getSeq() {
			return seq;
		}
		
		/**
		*
	 	*seq
	 	*/
		public void setSeq(Integer seq) {
			this.seq = seq;
		}
		
		/**
		*是否可修改0：可修改，1:不可修改
	 	*is_system
	 	*/
		public Integer getIsSystem() {
			return isSystem;
		}
		
		/**
		*是否可修改0：可修改，1:不可修改
	 	*is_system
	 	*/
		public void setIsSystem(Integer isSystem) {
			this.isSystem = isSystem;
		}
		

		public IdNameRes toIdNameRes(){
			return new IdNameRes(id, name);
		}
		
		@Override
		public int compareTo(BodypartDict o) {
			if(o!=null && o.seq!=null){
				return seq.compareTo(o.seq);
			}
			return 0;
		}
		
		@Override
		public void dealWith(){
			super.dealWith();
			
		}

 }	